package org.spi;

import org.junit.Test;
import org.spi.animal.ServiceLoaderUtil;
import org.spi.animal.spi.ShowYourselfProvider;

import java.util.List;

/**
 * @Author czl
 * @Date 2024-04-28
 */
public class SpiTest {
    @Test
    public void testSound() {

        List<ShowYourselfProvider> providersList = ServiceLoaderUtil.providers();

        ShowYourselfProvider provider = providersList.get(0);

        provider.sound();


    }
}
